/**
 * 							MUTEX MANAGEMENT
 * @brief	    mutex management
 * @author	    chy.
 * @note	    this file manage mutex
 * @comments	mutex need disable interrupt!
 */
 
#ifndef _K_MUTEX_DEF_H_
#define _K_MUTEX_DEF_H_

#include "../k_common_asm.h"

typedef struct k_mutex_tag
{
    unsigned int    val;        // value of mutex
    K_PThread       handler;    // owner of mutex
}K_Mutex, *K_PMutex;

/** define mutex handle */
typedef unsigned int K_HMUTEX;

#endif /* _K_MUTEX_DEF_H_ */
